﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JohnnySins.Entities
{
    public class MyVideo
    {
        public int MyVideoId { get; set; }
        public string MyVideoTitle { get; set; }
        public string MyVideoFileName { get; set; }

        private string poster;
        public string Poster 
        { 
            get
            {
                return poster;
            } 
            set
            {
                poster = value.Replace(' ', '-');
            }
        }

        public string HDWinFileName { get; set; }
        public string LDWinFileName { get; set; }
        public string HDQTFileName { get; set; }
        public string LDQTFileName { get; set; }

        public bool IsActive { get; set; }
        public bool Selected { get; set; }
        public string Status
        {
            get
            {
                return IsActive ? "Active" : "Deactivate";
            }
        }

        public bool IsPublic { get; set; }
        public string StatusPublic
        {
            get
            {
                return IsPublic ? "Public" : "Member";
            }
        }

        public bool IsFitness { get; set; }
        public string StatusFitness
        {
            get
            {
                return IsFitness ? "Fitness" : "My Video";
            }
        }
        
        public string PhysFileName
        {
            get
            {
                return MyVideoId.ToString() + "-" + MyVideoFileName;
            }
        }
        public string PhysPoster
        {
            get
            {
                return MyVideoId.ToString() + "-" + Poster;
            }
        }
        public string PhysHDWinFileName
        {
            get
            {
                return MyVideoId.ToString() + "-" + HDWinFileName;
            }
        }
        public string PhysLDWinFileName
        {
            get
            {
                return MyVideoId.ToString() + "-" + LDWinFileName;
            }
        }
        public string PhysHDQTFileName
        {
            get
            {
                return MyVideoId.ToString() + "-" + HDQTFileName;
            }
        }
        public string PhysLDQTFileName
        {
            get
            {
                return MyVideoId.ToString() + "-" + LDQTFileName;
            }
        }

    }
}
